'''
Created on 2011. 1. 1.

@author: Wonderer
'''
import unittest
from Finance import Finance

class FinanceTest(unittest.TestCase):


    def setUp(self):
        pass


    def tearDown(self):
        pass


    def testAppraisedRate(self):
        finance = Finance()
        finance.buyPrice = 100
        finance.appraisedPrice = 110
        self.assertAlmostEqual(10, finance.getProfitRate())
        


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()